import request from '@/utils/request'
// 查询当前配置的工序
export function queryCurrentOp() {
  return request({
    url: `/md/stepProduce/selectCurrentOpConfig`,
    method: 'get'
  })
}
// 配置工序
export function configOp(data) {
  return request({
    url: `/md/stepProduce/stemStepConfig`,
    method: 'post',
    data
  })
}
// 查询所有可以进站的工序工单
export function queryCanIntStationOpOrder(data) {
  return request({
    url: `/md/stepProduce/getCanInputStationOpOrder`,
    method: 'post',
    data
  })
}
// 查询所有可以出站的工序工单
export function queryCanOutStationOpOrder(data) {
  return request({
    url: `/md/stepProduce/getCanOutputStationOpOrder`,
    method: 'post',
    data
  })
}

// 线圈进站
export function coliIntStation(data) {
  return request({
    url: `/md/stepProduce/stepInStation`,
    method: 'post',
    data
  })
}
// 线圈出站
export function coliOutStation(data) {
  return request({
    url: `/md/stepProduce/stepOutStation`,
    method: 'post',
    data
  })
}
// 线圈出站获取当前工位用户
export function queryUserList() {
  return request({
    url: `/md/stepProduce/selectUserByStation`,
    method: 'get'
  })
}
